//
//  LGZuPuPeopleView.m
//  ligenyun
//
//  Created by Mac on 2018/4/9.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "LGZuPuPeopleView.h"
@interface LGZuPuPeopleView()
@property(nonatomic, strong) UIImageView                     *bannerImageView;
@property(nonatomic, strong) STLabel                     *addLable;

@end
@implementation LGZuPuPeopleView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self configSubView];
    }
    return self;
}
#pragma mark --subView
- (void)configSubView{
    self.backgroundColor = [UIColor whiteColor];
    
    self.bannerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.width,60 )];
    self.bannerImageView.image = [UIImage imageNamed:@"亲友01"];
    [self addSubview:self.bannerImageView];
    

    self.addLable = [[STLabel alloc] initWithFrame:CGRectMake(5, self.bannerImageView.bottom, self.width - 10, 40)
                                              text:@"地址:成都市午屋后益州大道"
                                           textColor:FirstTextColor
                                                font:12
                                         isSizetoFit:NO
                                       textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.addLable];
    
    self.friendButton = [[STButton alloc] initWithFrame:CGRectMake(0, 0, 70, 40)
                                                     title:@"添加好友"
                                                titleColor:FirstTextColor
                                                 titleFont:14
                                              cornerRadius:4
                                           backgroundColor:TM_backgroundColor
                                           backgroundImage:nil
                                                     image:nil];
    self.friendButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
    self.friendButton.right = self.width - 5;
    self.friendButton.bottom = self.height - 5;
    [self addSubview:self.friendButton];
    
    
}
@end
